# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-milletwifi
pkgdesc="Samsung Galaxy Tab 4 8.0 Wi-Fi"
pkgver=3
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
	linux-postmarketos-qcom-msm8226
	mkbootimg
	postmarketos-base
	soc-qcom-msm8226
	"
makedepends="devicepkg-dev"
source="deviceinfo modules-initfs"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="GPU/WiFi/BT/Modem/Video firmware"
	depends="firmware-samsung-milletwifi-wcnss-nv msm-firmware-loader msm-modem"
	mkdir "$subpkgdir"
}

sha512sums="
19c37793a7314623fbc3aa4f07df3290388aaa38884bff55a9a703164545cf7c1bdbcb4b1b3f053bc2310ddab2bcf8d3de1ac72949f1f12bcb007663ae556194  deviceinfo
566fbcbd958c465fa546068095c51678b6635a247dd7ef1d6c7f4c5fd527a21f41ed4daf8f63a1342433f150d3437b102e523bfa63d17ff64a0ebe48eb7b9ae6  modules-initfs
"
